﻿var status = 0;




function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {

    if (mode == -1) {
        cm.dispose();
    } else {
        if (mode == 0) {
            cm.dispose();
            return;
        }
        if (mode == 1)                           						
            status++;
        else 
            status--;
        if (status == 0) {
                    cm.sendSimple("#e　　　　　　#v03800801#　　"+
                        "\r\n#e　　　　  　#k遊戲帳號#r#k#e"+cm.getClient().getAccountName()+"" +
                        "\r\n#e　　　　  　今日在線時數 #r#k#e"+cm.getOnlineTime()+"分鐘" +
                        "\r\n#e　　　　  　#k您目前有#r#k#e"+cm.getRMB().toString()+"贊助點" +
                        "\r\n#e　　　　  　您目前有#r#k#e"+cm.getPlayer().getCSPoints(1).toString()+"点券" +
                        "\r\n#e　　　　  　您目前有#r#k#e"+cm.getPlayer().getCSPoints(2).toString()+"抵用" +
           "\r\n\r\n#v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##l#k"+   
                
             
          
                "\r\n#r #L1##i3994389#傳送相關#l         #r#L2##i3994588#商店相關#l#k"+　 //藥水   
                "\r\n\r\n#r #L3##i3994196#角色相關#l        #r#L4##i03994610#道具強化#l#k"+
                "\r\n\r\n#r #L5##i5030001#福利中心#l        #r#L6##i1004276#休閒活動#l#k"+
                "\r\n\r\n#r #L7##v3996058#游戏排行#l        #r#L8##i5040005#更多功能#l#k"+
"\r\n\r\n#v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##v3994870##l#k"+
                "\r\n\r\n#r #L9##v3996058#進入商城#l        #r#L10##i5040005#進入官網#l#k");
     } else if (status == 1) {
            if (selection == 0) {
                cm.dispose();
                cm.warp(271040000, 0);
           //      return;
       } else if (selection == 1) {
                cm.dispose();
                cm.openNpc(9400222, 1);
       } else if (selection == 2) {
                cm.dispose();
                cm.openNpc(9390123, 1);
       } else if (selection == 3) {
                cm.dispose();
                cm.openNpc(9400222, 3);
       } else if (selection == 4) {
                cm.dispose();
                cm.openNpc(9400222, 4);
       } else if (selection == 5) {
                cm.dispose();
                cm.openNpc(2159465, 1);
       } else if (selection == 6){
                cm.dispose();
                cm.openNpc(9400222, 6);
		} else if (selection == 7) {
                cm.dispose();
                cm.openNpc(9400222, 7);
        } else if (selection == 8) {
                cm.dispose();
                cm.openNpc(9400222, 8);
		} else if (selection == 9) {
		cm.dispose();
		cm.warp(800040410, 0);
		} else if (selection == 10){
		cm.dispose();
		cm.warp(230040420, 0); 
		} else if (selection == 11){
		cm.dispose();
		cm.warp(105100100, 0);
		} else if ( selection == 12){
		cm.dispose();
		cm.warp(211042400, 0);
		} else if ( selection == 13){
		cm.dispose();
		cm.warp(401060000, 0);
		} else if ( selection == 14){
		cm.dispose();
		cm.warp(211041700, 0);
		} else if ( selection == 15){
		cm.dispose();
		cm.warp(105200000, 0);
		} else if ( selection == 16){
		cm.dispose();
		cm.warp(911005901, 0);
		return;
}
}
        }
    }    



